home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Datafile PD-CD 1 Issue 2
/
PDCD-1 - Issue 02.iso
/
_utilities
/
utilities
/
001
/
src
/
ReadMe
Wrap
Text File
|
1994-02-07
|
5KB
|
111 lines
This archive contains some GNU and BSD utilities which I have ported to
run under RISC OS. They were compiled using gcc 2.4.5 release 2, linked
using DrLink version 0.24 and UnixLib 3.6c (gcc release) and finally
crunched using !Crunch 1.00.
Isn't hensa useful ;-)
Ok, here's the list:
apropos - search the whatis database for strings
basename - strip directory and suffix from filenames
cat - concatenate files and print on the standard output
cksum - checksum and count the bytes in a file
comm - compare two sorted files line by line
csplit - split a file into sections determined by context lines
cut - remove sections from each line of files
dirname - strip filename suffix from pathname
expand - convert tabs to spaces
expr - evaluate expressions
fold - wrap each input line to fit in specified width
head - output the first part of files
join - join lines of two files on a common field
logname - print user's login name
man - format and display the on-line manual pages
more - file perusal filter for crt viewing
nl - number lines of files
od - dump files in octal and other formats
paste - merge lines of files
pr - convert text files for printing
printf - format and print data
sleep - delay for a specified amount of time
sort - sort lines of text files
split - split a file into pieces
sum - checksum and count the blocks in a file
tac - concatenate and print files in reverse
tail - output the last part of files
tr - translate or delete characters
tar - GNU tar, version 1.11.2
tty - print the path of the terminal connected to standard input
unexpand - convert spaces to tabs
uniq - remove duplicate lines from a sorted file
wc - print the number of bytes, words, and lines in files
yes - output a string repeatedly until killed
What else can I say ? Well, I can't say I've tested any of these fully. Most
of the ports came about because GNU code is so easy to port. For example,
the textutils were all ported because I wanted a working version of sort. If
any horrible problems arise, I'd like to know about them. The programs are
all linked to UnixLib, so need some variables setting to run properly.
Here's a minimal example from my !Boot application:
| Setup paths for the Unix Library.
Set TERM acorn0
Set TERMCAP /etc/termcap
Set UnixFS$/etc HD1:$.etc
Set UnixFS$/tmp HD1:$.tmp
Set UnixFS$/usr HD1:$.usr
Set UnixFS$/pipe HD1:$.tmp
Set UnixFS$sfix a:c:f:h:i:l:o:p:s:y
Set Lib$Path HD1:$.usr.lib.
Set MANPAGER zmore
Set MANPATH /usr/local/man:/usr/linux/man:/usr/sillyman
Note that MANPATH has to be colon separated, like on Unix, and this will
confuse it for any RISC OS FS names. You need to have the /etc/termcap
file installed too, or more will not be able to run.
man is a simple version. It doesn't have the capability of calling nroff,
as I've never found a version of nroff which I could port and persuade to
expand man macros. The pages are stored in man/cat[1-8]/[1-8][a-z]/file,
while the file is compressed using gzip (though this is not necessary, just
adjust your MANPAGER variable (gzip is available on hensa).
Since filecore based filing systems are limited to 77 files per directory,
I've modified man so that it now looks in (e.g.) cat1/1/ls then cat1/1a/ls,
and so on. It will search the alphabet until it comes across a non-existent
directory, so you can't have cat1/1, cat1/1a, cat1/1c as 1c will never be
examined.
If you want man pages for C function calls (man2 and man3) take a look in
the linux archive on ftp.mcc.ac.uk:/pub/linux/...
The more port has a help file which is displayed when you type ? or h at the
--- More --- (dd%) prompt. This file must be installed as more_help in your
Lib: directory.
Oh yes, I'm supplying all the sources, as GNU likes. The GNU license says
that I should announce any modified code. Well, in general I've only had to
alter makefiles and add a few #ifdef ARCH's in the source. If you want to
find the changes, just search for ARCH. Don't look too closely at the
makefiles - since I can't create library files, there's a humungous number
of -l's on the linker calls. Anyone know if a freeware version of ar for
RISC OS exists ?
Can't think of anything else to say right now. If you have any problems
installing these, I'll be glad to answer questions. If you find any bugs,
I'll try to solve them, but time is at a premium for me right now, so don't
hold your breath (besides, you've got the sources - what more do you
want ? :-)
My mail address is: auj@aber.ac.uk
Snail mail (Home): Alun Jones, (Aber) Alun Jones,
Sunny Bank, C67 Neuadd Cwrt Mawr,
Tregynon, Waunfawr,
Newtown, Aberystwyth,
Powys SY16 3EH. Dyfed SY23 3AN.
(valid until Sep 94)